package service.impl;

import dao.UserDao;
import entity.User;
import org.springframework.stereotype.Service;
import service.UserService;

import javax.annotation.Resource;
import java.util.List;

@Service("userService")
public class Userimpl implements UserService {

    @Resource(name="userDao")
    private UserDao userDao;

    @Override
    public List<User> list() {
        return userDao.list();
    }

    @Override
    public int cha(User u) {
        return userDao.cha(u);
    }
}
